﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="mfTravelFoodInfo.aspx.cs" Inherits="msBsc.WebUi.mMall.Public.mfTravelFoodInfo" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>手机地接客商城</title>
    <%=getMeta()%>
    <link rel="stylesheet" type="text/css" href="/themes/mStyle1/mGlobal.css" charset="gbk" />
    <link href="/themes/mStyle1/css/public/mTravelIndex.css" rel="stylesheet" charset="gbk" />
    <link rel="stylesheet" type="text/css" href="/themes/mStyle1/css/home/base.css" charset="gbk" />
    <%=getBodyBeforeJs()%>
    <%--<script src="/??jqPlugin/js/jquery-1.8.3.min.js,js/jBase.js,js/jmPage.js,themes/Style1/jsQt.js,jqPlugin/js/laytpl.js,themes/wStyle1/js/comm/VerifyJs.js"
        type="text/javascript"></script>--%>
    <script type="text/javascript" src="/jqPlugin/js/jquery-1.8.3.min.js"></script>
    <script type="text/javascript" src="/jqPlugin/js/jBase.js"></script>
    <script type="text/javascript" src="/jqPlugin/js/jmPage.js"></script>
    <script type="text/javascript" src="/themes/Style1/jsQt.js"></script>
    <script type="text/javascript" src="/jqPlugin/js/laytpl.js"></script>
    <script type="text/javascript" src="/themes/wStyle1/js/comm/VerifyJs.js"></script>
    <script type="text/javascript">
        $(window).load(function () {
        });
        //        $(window).bind('resize', function () { _self._ResizeHandler(_self); })
        //        .bind('scroll', function () { _self._ResizeHandler(_self); });
    </script>
    <!--head fix rgn-->
    <style type="text/css">
        #h_title {
            font-size: 18px !important;
        }
    </style>
    <base target="_self" />
</head>
<body>
    <input type="hidden" id="foodId" />
    <div class="viewport">
        <%=msBsc.WebUi.Code.QtHtmlGet.GetWapHeaderMenuHtml(true) %>
        <form action='#' method="post" id="J_EmailForm">
            <div id="contentInfo" class="contentInfo">
                <%--<p class="p15" style="text-indent: 24.1pt; text-align: center;">
                    <span style="color: #333333; font-size: 12pt; font-family: 宋体;">挂甲峪山庄</span>
                    <span style="color: #333333; font-size: 12pt; font-family: 宋体;"></span>
                </p>
                <p class="p15" style="text-indent: 24.1pt; text-align: center;">
                    <span style="color: #333333; font-size: 12pt; font-family: 宋体;">
                        <br>
                    </span>
                </p>
                <p class="p15" style="text-indent: 24.1pt; text-align: center;">
                    <span style="color: #333333; font-size: 12pt; font-family: 宋体;">
                        <img alt="" src="http://www.dijieke.com/UpLoad/attached/image/20150126/20150126155926_2703.jpg">
                        <br>
                    </span>
                </p>
                <p class="p15" style="text-indent: 24.1pt; text-align: center;">
                    <span style="color: #333333; font-size: 12pt; font-family: 宋体;">
                        <br>
                    </span>
                </p>
                <p class="p15" style="text-indent: 24.1pt;">
                    <span style="color: #333333; font-size: 12pt; font-family: 宋体;">挂甲峪山庄位于京东挂甲峪上。京东挂甲峪是平谷北部山区，属燕山南麓余脉的一部分，它北、东、南三面环山，中间为一狭小的丘陵盆地，面积约5平方公里。挂甲峪村146户，460口人，历史文化悠久，相传成村于明崇祯年间，因宋代名将杨延昭抗辽凯旋在此挂甲休息，后人便取村名为挂甲峪。</span>
                    <span style="color: #333333; font-size: 12pt; font-family: 宋体;"></span>
                </p>--%>
            </div>

            <div class="c_page">
                <div id="previousName" class="c_Travel">
                    <a href="###" class="nextTravel" id="previous" style="">上一条：</a>
                </div>
                <div id="nextName" class="c_Travel">
                    <a href="###" class="nextTravel" id="next">下一条：</a>
                </div>
            </div>
            <%=msBsc.WebUi.Code.QtHtmlGet.GetWapMenuHtml() %>
        </form>
        <script type="text/javascript">
            (function () {
                $.getMessageCount();
                $("#foodId").val(GetQueryStr("foodId"));
            })()
            function btnDo(sEbtn) {
                GtGrid1Action = sEbtn;
                var opart = GetGtParam();
                ajaxComm(opart);
            };
            //执行AJAX调用时获取参数
            function GetGtParam() {
                var _jsParam = new jsonRow();
                _jsParam = addNoAreStatistics(_jsParam, "资讯美食详情", "m0009");
                _jsParam.AddCell("foodId", $("#foodId").val());
                _jsParam.AddCell("ACTION", GtGrid1Action);
                return _jsParam;
            };
            btnDo("init");

            function setScenicInfo(data) {
                $("#contentInfo").html("");
                if (IsNull(data)) {
                    $("#h_title").text("美食");
                    return;
                }
                $("#h_title").text(data.rows[0].CITYNAME + "-" + data.rows[0].DESTINATIONNAME + "-美食");
                $("#tr_name").text(data.rows[0].NAME);
                //$("#contentInfo").html(data.rows[0].DETAILS);
                doBoundContent(data.rows[0].CONTENT_FILE_URL);
                if (IsNull(data.rows[0].PREVIEWNAME)) {
                    $("#previousName").hide();
                } else {
                    if (IsNull(data.rows[0].NEXTNAME)) {
                        $("#previous").css("text-align", "left");
                    }
                    $("#previous").html("上一条：<span>" + data.rows[0].PREVIEWNAME + "</span>");
                    $("#previous").attr("href", "/mp_TravelFoodInfo.htm?foodId=" + data.rows[0].PREVIEWID);
                }
                if (IsNull(data.rows[0].NEXTNAME)) {
                    $("#nextName").hide();
                } else {
                    $("#next").html("下一条：<span>" + data.rows[0].NEXTNAME + "</span>");
                    $("#next").attr("href", "/mp_TravelFoodInfo.htm?foodId=" + data.rows[0].NEXTID);
                }
            }

            function doBoundContent(_shopurl) {
                if (_shopurl != null && _shopurl != undefined && _shopurl != '') {
                    jQuery.loadHtml(_shopurl).done(function (_rethtml) {
                        var tpl = HtmlUtil.htmlDecode(_rethtml);
                        $("#contentInfo").html(tpl);
                        $("#contentInfo").find("img").parents("p").css("text-indent", "0px");
                    });
                }
            };
        </script>
    </div>
</body>
<%=getBodyAfterJs() %>
</html>
